﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterALSafa.Master"
    CodeBehind="Bus_Student.aspx.cs" Inherits="School.Pages.Bus.Bus_Student" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release" EnablePartialRendering="False">
    </asp:ScriptManager>
    <table align="right" width="100%">
        <tr>
            <td style="width: 15px">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table align="right" dir="rtl" style="width: 100%; float: right">
                    <tr>
                        <td nowrap="nowrap" align="center">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <table align="right" dir="rtl" style="width: 100%; float: right">
                                        <tr>
                                            <td nowrap="nowrap" style="width: 25px">
                                                المجمع
                                            </td>
                                            <td style="width: 174px">
                                                <asp:DropDownList ID="ddlCampus" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                    DataTextField="Name" DataValueField="Id" OnTextChanged="ddlCampus_TextChanged"
                                                    Width="150px">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td nowrap="nowrap" style="width: 88px">
                                                رقم أمر الدفع
                                            </td>
                                            <td style="width: 174px" nowrap="nowrap">
                                                <asp:TextBox ID="txtorderNumber" runat="server" Width="150px"></asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtorderNumber"
                                                    Display="Dynamic" ErrorMessage="أدخل رقم" ForeColor="Red" Operator="DataTypeCheck"
                                                    Type="Integer">أدخل رقم</asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap" style="width: 25px">
                                                الشهاده
                                            </td>
                                            <td style="width: 174px">
                                                <asp:DropDownList ID="ddlCertificate" runat="server" AppendDataBoundItems="True"
                                                    AutoPostBack="True" DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlCertificate_SelectedIndexChanged"
                                                    TabIndex="1" Width="150px">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td nowrap="nowrap" style="width: 88px">
                                                تاريخ أمر الدفع
                                            </td>
                                            <td style="width: 174px" nowrap="nowrap">
                                                <asp:TextBox ID="txtdate" runat="server" Width="150px"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtdate"
                                                    Display="Dynamic" ErrorMessage="يوم /شهر/سنه" ForeColor="Red" ValidationExpression="([1-9]|0[1-9]|[12][0-9]|3[01])[- /.]([1-9]|0[1-9]|1[012])[- /.][0-9]{4}$">يوم /شهر/سنه</asp:RegularExpressionValidator>
                                                <asp:CalendarExtender ID="txtdate_CalendarExtender" runat="server" Enabled="True"
                                                    TargetControlID="txtdate" Format="dd/MM/yyyy">
                                                </asp:CalendarExtender>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap" style="width: 25px">
                                                المرحله
                                            </td>
                                            <td style="width: 174px">
                                                <asp:DropDownList ID="ddlStadge" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                    DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlStadge_SelectedIndexChanged"
                                                    TabIndex="2" Width="150px">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 88px">
                                                &nbsp;
                                            </td>
                                            <td style="width: 174px">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap" style="width: 25px">
                                                الصف
                                            </td>
                                            <td style="width: 174px">
                                                <asp:DropDownList ID="ddlGrade" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                    DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlGrade_SelectedIndexChanged"
                                                    TabIndex="3" Width="150px">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 88px">
                                                &nbsp;
                                            </td>
                                            <td style="width: 174px">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap" style="width: 25px">
                                                الطالب
                                            </td>
                                            <td style="width: 174px">
                                                <asp:DropDownList ID="ddlstudent" runat="server" AppendDataBoundItems="True" DataTextField="FullName"
                                                    DataValueField="Id" TabIndex="4" Width="150px">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 88px">
                                                &nbsp;
                                            </td>
                                            <td style="width: 174px">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap" style="width: 25px">
                                                &nbsp;
                                            </td>
                                            <td style="width: 174px">
                                                <asp:Button ID="btnview" runat="server" CssClass="graybutton" OnClick="btnview_Click"
                                                    Text="عرض" />
                                            </td>
                                            <td align="right" colspan="2">
                                                <asp:Literal ID="lbltestBus" runat="server" Visible="False"></asp:Literal>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap" style="width: 25px">
                                                &nbsp;
                                            </td>
                                            <td colspan="3">
                                                <asp:Panel ID="PLpayment" runat="server" Visible="False">
                                                    <asp:GridView ID="gvsb" runat="server" AutoGenerateColumns="False" FooterStyle-CssClass="GridHeaderFooter"
                                                        HeaderStyle-CssClass="GridHeaderFooter" AlternatingRowStyle-CssClass="GridItemAltername"
                                                        PagerStyle-CssClass="GridPager" CssClass="Grid" Width="100%" DataKeyNames="Payment_order_num,Bus_Go_Id,Bus_Return_Id,Station_Go_Id,Station_Return_Id,Number,Student_Id"
                                                        OnSelectedIndexChanged="gvsb_SelectedIndexChanged">
                                                        <AlternatingRowStyle CssClass="GridItemAltername" />
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <HeaderTemplate>
                                                                    م
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <%# Container.DataItemIndex + 1 %>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="إسم الطالب" SortExpression="studentName">
                                                                <EditItemTemplate>
                                                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Ar_FirstName") %>'></asp:TextBox>
                                                                </EditItemTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Ar_FirstName") %>'></asp:Label>
                                                                    &nbsp;
                                                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("Ar_SecondName") %>'></asp:Label>
                                                                    &nbsp;
                                                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("Ar_ThirdNmae") %>'></asp:Label>
                                                                    &nbsp;
                                                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("Ar_FourthName") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="bgo" HeaderText="باص الذهاب" SortExpression="bgo" />
                                                            <asp:BoundField DataField="sgo" HeaderText="محطة الذهاب" SortExpression="sgo" />
                                                            <asp:BoundField DataField="bback" HeaderText="باص العودة" SortExpression="bback" />
                                                            <asp:BoundField DataField="Sback" HeaderText="محطة العودة" SortExpression="Sback" />
                                                            <asp:TemplateField HeaderText="تسكين">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"
                                                                        Text="تسكين"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <EmptyDataTemplate>
                                                            لا توجد بيانات
                                                        </EmptyDataTemplate>
                                                        <FooterStyle CssClass="GridHeaderFooter" />
                                                        <HeaderStyle CssClass="GridHeaderFooter" />
                                                        <PagerStyle CssClass="GridPager" />
                                                    </asp:GridView>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
